package stud.mpgame.net.description;

import stud.mpgame.network.MessageDescription;

import stud.mpgame.net.command.ReadyToGameCommand;

/**
 * Created by IntelliJ IDEA.
 * User: Yarik
 */
public class ReadyToGameMessageDescription extends MessageDescription{

    private static final int ID = IDescriptionManager.READY_TO_GAME_MESSAGE_DESCRIPTION;

    private static final int READY_TO_GAME_USER_OBJECT_ID = 1; //ReadyToGameCommand

    private static ReadyToGameMessageDescription instance = null;

    public int getID() {
        return ID;
    }

    public ReadyToGameMessageDescription() {
        this.registerUserObject(READY_TO_GAME_USER_OBJECT_ID, ReadyToGameCommand.class);
    }

    public static ReadyToGameMessageDescription getInstance() {
        if(instance == null){
            instance = new ReadyToGameMessageDescription();
        }
        return instance;
    }

}
